''' Display program with functions and paramters Mission 4 -- Display Final code with one function and 2 arguments ''' from codex import * from time import sleep delay = 1 def play_game(message, button): display.show(message) sleep(delay) pressed = buttons.is_pressed(button) if pressed: pixels.fill(GREEN) else: pixels.fill(RED) # -- Main Program message = "Hold BTN-A" button = BTN_A play_game(message, button) play_game("Hold BTN-B", BTN_B) play_game("Hold UP", BTN_U) play_game("Hold DOWN", BTN_D) play_game("Hold RIGHT", BTN_R) play_game("Hold LEFT", BTN_L)